package com.ruleengine.router.impl;


import org.apache.log4j.Logger;

import com.ruleengine.context.IWorkflowConext;
import com.ruleengine.endpoint.data.IEndpointData;
import com.ruleengine.router.exception.RouterException;

/**
 * 异常路由器，即没有任何路由器能够处理这个请求。
 * @author AB033862
 * Aug 23, 2012
 */
public class ErrorRouter extends AbstractRouter {
    private static Logger logger = Logger.getLogger(ErrorRouter.class);

    public void route(final String target, final IWorkflowConext context,
            final IEndpointData data) throws RouterException {
            // TODO Auto-generated catch block
            throw new RouterException("route the workflow task [" + target
                    + "] error , can't find any router information");
    }

}
